package com.zelix;

public final class tk extends qk {

    private static String z;

    public tk(int j) {
        super(j);
    }

    double a(op op1, String s) {
        double d;
        d = 1.0D;
        mh mh1 = (mh) a(0);
        if ((mh1 instanceof zl)) {
            String s1 = mh1.a();
            if (s1 != null && !il.l(s1)) {
                if (!il.h(s1)) {
                    d *= 0.10000000000000001D;
                } else {
                    d *= 0.5D;
                }
            }
            if (s != null && !s.equals(z))
                d *= 0.10000000000000001D;
            if (op1 != null) {
                if (op1.t()) {
                    d *= 0.25D;
                } else if (op1.q()) {
                    d *= 0.25D;
                } else if (op1.s()) {
                    d *= 0.25D;
                } else if (op1.r())
                    d *= 0.25D;
                if (op1.u())
                    d *= 0.14999999999999999D;
                if (op1.e()) {
                    d *= 0.20000000000000001D;
                } else if (op1.c())
                    d *= 0.20000000000000001D;
                if (op1.g())
                    d *= 0.01D;
                if (op1.v())
                    d *= 0.10000000000000001D;
            }
        }
        return d;
    }

    public void a(uh uh1, nh nh) {
        a(0).a(this, nh);
        if (uh1 instanceof pk)
            ((pk) uh1).a(this);
    }

    boolean i() {
        mh mh1 = (mh) a(0);
        if (mh1 instanceof zl)
            return ((zl) mh1).i();
        else
            return false;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x54;
                    break;
                case 1:
                    key = 105;
                    break;
                case 2:
                    key = 75;
                    break;
                case 3:
                    key = 26;
                    break;
                default:
                    key = 10;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        z = z("|Cb".toCharArray());
    }
}